home *** CD-ROM | disk | FTP | other *** search
/ BMUG Revelations / BMUG Revelations.toast / Utilities / System 7 / PsychoKiller Package / Read Me < prev    next >
Text File  |  1992-11-19  |  2KB  |  18 lines

  1. PsychoKiller AE • Technical Read Me
  2. ©1992 by Chris Parker
  3.  
  4. • If you've got any suggestions, please write!!!
  5.  
  6. "Say, Chris, what's going on under the hood of this thing, anyway?"
  7.  
  8. Well, I'm glad you asked that...
  9.  
  10. What I've done is this:  When the cdev closes, it writes to the PKAE Prefs file the number of items in the list.  Then, once for each item in the list, it writes the length of the string as an integer (2 bytes) immediately followed by the string itself.
  11.  
  12. When PsychoStartup runs, it opens this up and reads the info into a linked list.  It then uses PBGetCatInfoSync to go through each file in the At Ease Items folder.  Once for each item in the At Ease Items folder, it compares the filename to the list.  If the filename is in the list, then it moves on to the next item in the folder.  If the filename is not in the list, it moves to the creation date of the alias.  If the alias is older than 2 days (86400 seconds), it attempts to resolve the alias using MatchAlias.  I used MatchAlias because a student might have saved a document to disk.  This means the alias will be connected to a file which isn't resident on the hard disk.  ResolveAliasFile would have asked for the disk, but MatchAlias with kARMNoUI passed in suppresses those requests.  If MatchAlias is successful, I kill off the original file. The alias is destroyed anyway.
  13.  
  14. And that's that.
  15.  
  16. If you've got any questions, suggesstions, ideas, etc... please write to me at one of the addresses in the other Read Me.
  17.  
  18. -Chris